<% content_for :mid do %>
<div id="midnav_left"></div>
<div id="midnav_back">
<div id="notice">
<%= list_notice(flash[:notice]) %>
</div>
</div>
<div id="midnav_right"></div>
<% end %>
<div id="info_menu">
<ul>
	<li class='menuclick' id="head1"
		onclick="resetall();new Effect.Appear('user_info');menuover(event);">资料管理</li>
	<li class='menuout' id="head3"
		onclick="resetall();new Effect.Appear('incumbent_list');menuover(event);">职位数据</li>
	<li class='menuout' id="head4"
		onclick="resetall();new Effect.Appear('report_list');menuover(event);">分析报告</li>
	<li class='menuout' id="head5"
		onclick="resetall();new Effect.Appear('friend_list');menuover(event);">好友名单</li>
	<li class='menuout' id="head6"
		onclick="resetall();new Effect.Appear('message_list');menuover(event);">消息列表</li>
	<li class='menuout' id="head2"
		onclick="resetall();new Effect.Appear('profile_info');menuover(event);">收藏夹</li>
</ul>
</div>
<div id="info_sidebar">
<%= render :partial=>"user_side_bar",:locals => {:user => @user}%>
</div>
<div id="user_info">
<table width="680" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="31" align="center" class="lantou">用户资料<%=image_tag "/images/left.gif" , :alt=>"用户资料"%></td>
		<td width="560" class="lantou">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" id="user"><%= render :partial=>"user_info",:locals => {:user => @user}%></td>
	</tr>
</table>
</div>
<div id="profile_info" style="DISPLAY: none">
<table width="680" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="31" align="center" class="lantou">个人信息<%=image_tag "/images/left.gif" , :alt=>"个人信息"%></td>
		<td width="560" class="lantou">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" id="person"><%= render :partial=>"profile_info",:locals => {:profile => @user.profile}%></td>
	</tr>
</table>
</div>
<div id="incumbent_list" style="DISPLAY: none">
<table width="680" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="31" align="center" class="lantou">职位样本<%=image_tag "/images/left.gif", :alt=>"职位样本"%></td>
		<td width="560" class="lantou">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2"><%= render_collection_of_partials "report/incumbent_list", @incumbents%></td>
	</tr>
	<tr>
		<td colspan="2" align="right"><strong><%= link_to "添加职位样本>>", :controller=>"report", :action=>"newincumbent" %></strong></td>
	</tr>
</table>
</div>
<div id="report_list" style="DISPLAY: none">
<table width="680" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="31" align="center" class="lantou">薪酬分析<%=image_tag "/images/left.gif", :alt=>"薪酬报告"%></td>
		<td width="560" class="lantou">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">
		<table width="650" align="right" border="0" cellspacing="0"
			cellpadding="0">
			<tr valign="top">
				<td><%=image_tag "report.gif"%></td>
				<td><%= render_collection_of_partials "report/report_list", @reports%></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
<div id="friend_list" style="DISPLAY: none">
<table width="680" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="31" align="center" class="lantou">好友列表<%=image_tag "/images/left.gif" , :alt=>"好友列表"%></td>
		<td width="560" class="lantou">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2"><%= render :partial=>"friend_list",:locals => {:friends => @friends}%></td>
	</tr>
</table>
</div>
<div id="message_list" style="DISPLAY: none">
<table width="680" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" height="31" align="center" class="lantou">消息管理<%=image_tag "/images/left.gif", :alt=>"消息管理"%></td>
		<td width="560" class="lantou">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" id="m_list"><%= render :partial=>"message_list" , :locals => {:inbox_messages => @inbox_messages, :outbox_messages => @outbox_messages}%></td>
	</tr>
</table>
</div>
